package com.baseframe.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baseframe.system.entity.BaseRole;
import com.baseframe.system.entity.vo.BaseRoleVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
* @description 针对表【base_role(角色表)】的数据库操作Mapper
* @createDate 2023-05-20 19:25:46
* @Entity com.baseframe.system.entity.BaseRole
*/
public interface BaseRoleMapper extends BaseMapper<BaseRole> {

    @Select("select id from base_role where is_deleted = 0 and role_name = #{roleName}")
    BaseRoleVO findRoleIdByRoleName(@Param("roleName") String roleName);
}




